package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jiayen
 * @since 2021-12-14 10:18:54
 */
@ApiModel(value = "p_push_log对象", description = "p_push_log")
@Data
@TableName("p_push_log")
public class PPushLog implements Serializable {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "业务名称，需要保证唯一。待办、已办的失败记录都在这个表 todo,done,toread,read")
    @TableField("business")
    private String business;

    @ApiModelProperty(value = "需要推送的内容（json格式），就是3.1.2.3的body")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "推送的失败次数")
    @TableField("fail_times")
    private Integer failTimes;

    @ApiModelProperty(value = "插入时间")
    @TableField("inserttime")
    private Date inserttime;

    @ApiModelProperty(value = "更新时间 重复执行时间")
    @TableField("modifyTime")
    private Date modifyTime;

    @ApiModelProperty(value = "操作是否成功")
    @TableField("option_success")
    private Boolean optionSuccess;

    /**
     * 唯一流水号，只在log4j日志中记录，排查使用
     */
    @ApiModelProperty(value = "唯一流水号，只在log4j日志中记录，排查使用")
    @TableField("seqno")
    private String seqno;
}
